package com.jiawei.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;

/**
 * @author : willian fu
 * @version : 1.0
 */
@Controller
public class RequestController {

    @RequestMapping("/")
    public void index(HttpServletResponse response, HttpServletRequest request) throws IOException {
         response.sendRedirect("/index.html");
    }
    public void index1(@RequestParam Object object){

    }
    public void index2(@RequestBody Object object){

    }
}
